package com.xybean;

import java.util.ArrayList;
import java.util.List;

//import com.tiyan.domain.auth.Operation;

/**
 * action中的操作
 * 
 * @author Administrator
 * 
 */
public class OperateMap {
	public static String user_key = "user";// 用户账号相关的操作
	public static String shop_key = "shop";// 商家账号相关的操作
	public static String admin_key = "admin";// 管理员账号权限相关的操作
	public static String system_key = "system";// 系统相关的操作
	public static String order_key = "order";// 系统相关的操作
	public static String group_key = "group";// 系统相关的操作

	public static String product_key = "product";// 体验券相关的操作
	public static String article_key = "article";// 文章资讯相关的操作

	public static String ad_key = "ad";// 广告
	public static String config_key = "config";// 系统配置
	public static String type_key = "type";
	public static String feedback_key = "feedback";
	/*
	private static List<Operation> operations = new ArrayList<Operation>();// 所有分类
	static {
		Operation operation = null;
		operation = new Operation();
		operation.setName("添加管理员");
		operation.setOpGroup(admin_key);
		operation.setValue("com.tiyan.action.admin.AdminAction.save");
		operations.add(operation);
		operation = new Operation();
		operation.setName("删除管理员");
		operation.setOpGroup(admin_key);
		operation.setValue("com.tiyan.action.admin.AdminAction.delet");
		operations.add(operation);
		operation = new Operation();
		operation.setName("修改管理员");
		operation.setOpGroup(admin_key);
		operation.setValue("com.tiyan.action.admin.AdminAction.edit");
		operations.add(operation);
		operation = new Operation();
		operation.setName("分配角色");
		operation.setOpGroup(admin_key);
		operation.setValue("com.tiyan.action.admin.AdminAction.assign");
		operations.add(operation);
		operation = new Operation();
		operation.setName("激活停用管理员");
		operation.setOpGroup(admin_key);
		operation.setValue("com.tiyan.action.admin.AdminAction.activity");
		operations.add(operation);

		operation = new Operation();
		operation.setName("创建角色");
		operation.setOpGroup(admin_key);
		operation.setValue("com.tiyan.action.admin.RoleAction.save");
		operations.add(operation);
		operation = new Operation();
		operation.setName("删除角色");
		operation.setOpGroup(admin_key);
		operation.setValue("com.tiyan.action.admin.RoleAction.delet");
		operations.add(operation);
		operation = new Operation();
		operation.setName("修改角色");
		operation.setOpGroup(admin_key);
		operation.setValue("com.tiyan.action.admin.RoleAction.editRole");
		operations.add(operation);

		operation = new Operation();
		operation.setName("删除权限");
		operation.setOpGroup(admin_key);
		operation.setValue("com.tiyan.action.admin.OperateAction.delet");
		operations.add(operation);
		operation = new Operation();
		operation.setName("初始化权限");
		operation.setOpGroup(admin_key);
		operation.setValue("com.tiyan.action.admin.OperateAction.init");
		operations.add(operation);
	 */
	/* 广告
		operation = new Operation();
		operation.setName("添加广告");
		operation.setOpGroup(ad_key);
		operation.setValue("com.tiyan.action.admin.AdAction.save");
		operations.add(operation);
		operation = new Operation();
		operation.setName("编辑广告");
		operation.setOpGroup(ad_key);
		operation.setValue("com.tiyan.action.admin.AdAction.edit");
		operations.add(operation);
		operation = new Operation();
		operation.setName("删除广告");
		operation.setOpGroup(ad_key);
		operation.setValue("com.tiyan.action.admin.AdAction.delet");
		operations.add(operation);
	 * */
	/* 系統配置
		operation = new Operation();
		operation.setName("初始化系统配置");
		operation.setOpGroup(config_key);
		operation.setValue("com.tiyan.action.admin.ConfigAction.init");
		operations.add(operation);
		operation = new Operation();
		operation.setName("修改系统配置");
		operation.setOpGroup(config_key);
		operation.setValue("com.tiyan.action.admin.ConfigAction.update");
		operations.add(operation);
	 * */
	/* 分类配置
		operation = new Operation();
		operation.setName("添加文章分类");
		operation.setOpGroup(type_key);
		operation.setValue("com.tiyan.action.admin.TypeAction.savea");
		operations.add(operation);
		operation = new Operation();
		operation.setName("添加产品分类");
		operation.setOpGroup(type_key);
		operation.setValue("com.tiyan.action.admin.TypeAction.savep");
		operations.add(operation);
		operation = new Operation();
		operation.setName("修改文章分类");
		operation.setOpGroup(type_key);
		operation.setValue("com.tiyan.action.admin.TypeAction.edita");
		operations.add(operation);
		operation = new Operation();
		operation.setName("修改产品分类");
		operation.setOpGroup(type_key);
		operation.setValue("com.tiyan.action.admin.TypeAction.editp");
		operations.add(operation);
		operation = new Operation();
		operation.setName("删除文章分类");
		operation.setOpGroup(type_key);
		operation.setValue("com.tiyan.action.admin.TypeAction.deleta");
		operations.add(operation);
		operation = new Operation();
		operation.setName("删除产品分类");
		operation.setOpGroup(type_key);
		operation.setValue("com.tiyan.action.admin.TypeAction.deletp");
		operations.add(operation);
	 * */
	/** 用户操作
		operation = new Operation();
		operation.setName("删除用户");
		operation.setOpGroup(user_key);
		operation.setValue("com.tiyan.action.admin.UserAction.delet");
		operations.add(operation);
		operation = new Operation();
		operation.setName("激活停用会员");
		operation.setOpGroup(user_key);
		operation.setValue("com.tiyan.action.admin.UserAction.activity");
		operations.add(operation);
	 * */
	/** 商家操作
		operation = new Operation();
		operation.setName("删除商家");
		operation.setOpGroup(shop_key);
		operation.setValue("com.tiyan.action.admin.ShopAction.delet");
		operations.add(operation);
		operation = new Operation();
		operation.setName("激活停用商家");
		operation.setOpGroup(shop_key);
		operation.setValue("com.tiyan.action.admin.ShopAction.activity");
		operations.add(operation);
		operation = new Operation();
		operation.setName("设为品牌商家");
		operation.setOpGroup(shop_key);
		operation.setValue("com.tiyan.action.admin.ShopAction.brandShop");
		operations.add(operation);
		operation = new Operation();
		operation.setName("推荐商家");
		operation.setOpGroup(shop_key);
		operation.setValue("com.tiyan.action.admin.ShopAction.recommended");
		operations.add(operation);
	 * */
	/** 体验券管理
		operation = new Operation();
		operation.setName("删除体验券");
		operation.setOpGroup(product_key);
		operation.setValue("com.tiyan.action.admin.ProductAction.delet");
		operations.add(operation);
		operation = new Operation();
		operation.setName("设置体验券赠送比例");
		operation.setOpGroup(product_key);
		operation.setValue("com.tiyan.action.admin.ProductAction.update");
		operations.add(operation);
		operation = new Operation();
		operation.setName("激活停用体验券");
		operation.setOpGroup(product_key);
		operation.setValue("com.tiyan.action.admin.ProductAction.activity");
		operations.add(operation);* */
	/** 订单管理
		operation = new Operation();
		operation.setName("删除订单");
		operation.setOpGroup(order_key);
		operation.setValue("com.tiyan.action.admin.OrderAction.delet");
		operations.add(operation);* */

	/** 团购列表管理
		operation = new Operation();
		operation.setName("删除团购");
		operation.setOpGroup(group_key);
		operation.setValue("com.tiyan.action.admin.GroupBuyAction.delet");
		operations.add(operation);
		operation = new Operation();
		operation.setName("添加团购");
		operation.setOpGroup(group_key);
		operation.setValue("com.tiyan.action.admin.GroupBuyAction.save");
		operations.add(operation);
		operation = new Operation();
		operation.setName("编辑团购");
		operation.setOpGroup(group_key);
		operation.setValue("com.tiyan.action.admin.GroupBuyAction.edit");
		operations.add(operation);* */

	/** 资讯列表
		operation = new Operation();
		operation.setName("删除资讯");
		operation.setOpGroup(article_key);
		operation.setValue("com.tiyan.action.admin.ArticleAction.delet");
		operations.add(operation);
		operation = new Operation();
		operation.setName("推荐资讯");
		operation.setOpGroup(article_key);
		operation.setValue("com.tiyan.action.admin.ArticleAction.recommend");
		operations.add(operation);
		operation = new Operation();
		operation.setName("审核资讯");
		operation.setOpGroup(article_key);
		operation.setValue("com.tiyan.action.admin.ArticleAction.activity");
		operations.add(operation);* */
	/** 留言列表
		operation = new Operation();
		operation.setName("删除网站留言");
		operation.setOpGroup(feedback_key);
		operation.setValue("com.tiyan.action.admin.FeedbackAction.del");
		operations.add(operation);
		operation = new Operation();
		operation.setName("给用户添加威望");
		operation.setOpGroup(feedback_key);
		operation.setValue("com.tiyan.action.admin.FeedbackAction.addWeiwang");
		operations.add(operation);
		operation = new Operation();
		operation.setName("审核网站留言");
		operation.setOpGroup(feedback_key);
		operation.setValue("com.tiyan.action.admin.FeedbackAction.shenhe");
		operations.add(operation);

	}

	public static List<Operation> getOperations() {
		return operations;
	}
	 * */
}
